package com.shensi.api.pay.client;

import com.shensi.common.core.constant.CloudConstant;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/***
 * <Title> EnterpriseController </Title>
 * <Description> 油企下油站各信息控制层 </Description>
 * <Date>2021年10月28日</Date>
 */


@Api(tags = "油企下油站各信息接口")
@FeignClient(name = CloudConstant.PAY_SERVER)
public interface EnterpriseClient {

    /*
     * 获取油企信息
     * @param enterpriseId
     * @return
     */
    @GetMapping( value = "/selectEnterpriseInfo")
    @ApiOperation(value = "获取油企信息", httpMethod = "GET", notes = "获取油企信息")
    public String selectEnterpriseInfo(@ApiParam(value = "油站ID", required = true) Integer enterpriseId);

    /*
     * 获取油品列表信息
     * @param enterpriseId
     * @return
     */
    @GetMapping( value = "/selectOilInfoList")
    @ApiOperation(value = "获取油品列表信息", httpMethod = "GET", notes = "获取油品列表信息")
    public String selectOilInfoList();

    /*
     * 获取油企下油站信息列
     * @param enterpriseId
     * 适用于小程序3.1.18之上 替代selectStaInfoList接口
     * @return
     */
    @ApiOperation(value = "获取油企下油站信息列", httpMethod = "GET", notes = "获取油企下油站信息列")
    @GetMapping( value = "/appletSelectStationList")
    public String appletSelectStationList(@ApiParam(value = "油企ID", required = true) @RequestParam("enterpriseId") Integer enterpriseId, @RequestParam(value = "stationLongitude",required = false)String stationLongitude,@RequestParam(value = "stationLatitude",required = false)String stationLatitude,@RequestParam(value = "pageNum",required = false)Integer pageNum,@RequestParam(value = "pageSize",required = false)Integer pageSize);


    /*
     * 获取油企下油站信息列
     * @param enterpriseId
     * @return
     */
    @ApiOperation(value = "获取油企下油站信息列", httpMethod = "GET", notes = "获取油企下油站信息列")
    @GetMapping( value = "/selectStaInfoList")
    public String selectStaInfoList(@ApiParam(value = "油企ID", required = true)@RequestParam("enterpriseId") Integer enterpriseId, @RequestParam(value = "stationLongitude",required = false)String stationLongitude,@RequestParam(value = "stationLatitude",required = false)String stationLatitude,@RequestParam(value = "pageNum",required = false)Integer pageNum,@RequestParam(value = "pageSize",required = false)Integer pageSize);


    /*
     * 获取油站下油枪信息列
     * @param stationId 油站ID
     * @return
     */
    @ApiOperation(value = "获取油站下油枪信息列", httpMethod = "GET", notes = "获取油站下油枪信息列")
    @GetMapping( value = "/selectStaOilGunList")
    public String selectStaOilGunList(@ApiParam(value = "油站ID", required = true) @RequestParam("stationId") Integer stationId,
                                      @ApiParam(value = "用户名", required = false) @RequestParam(value = "userId",required = false)String userId);



    /*
     * 获取油企下油站信息列
     * @param enterpriseId
     * 适用于小程序3.1.18之上 替代selectStaInfoList接口
     * @return
     */
    @ApiOperation(value = "获取加油员列表", httpMethod = "GET", notes = "获取加油员列表")
    @GetMapping( value = "/selectSysUserList")
    public String selectSysUserList(
            @ApiParam(value = "油站id") @RequestParam(value = "stationId",required = false) String stationId,
            @ApiParam(value = "油企id") @RequestParam(value = "enterpriseId",required = false) String enterpriseId
    ) ;
}
